package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by dell on 2018/3/8.
 * 对接银行名称枚举
 */
@AllArgsConstructor
@Getter
public enum BankForLanmaoNameEnum {
    XW_BANK((byte)1,"新网银行"),
    SH_BANK((byte)2,"上海银行");

    private Byte value;
    private String name;


    public static BankForLanmaoNameEnum enumOf(byte value) {
        for (BankForLanmaoNameEnum statusEnum : values()) {
            if (statusEnum.value.equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
